import Vue, { h } from 'vue';
//得到组件生成的根dom
export default function (comp, props) {
    const vm = new Vue({
        render: h => h(comp, { props }),
    });
    vm.$mount();
    return vm.$el;
}